package org.idea.spring.ioc.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 创建用于测试的user对象
 *
 * @Author idea
 * @Date created in 2:38 下午 2020/4/19
 */
@Data
public class User implements Serializable {
    private static final long serialVersionUID = -6841693635661644101L;

    private Integer id;

    private String username;

    public User(Integer id, String username) {
        this.id = id;
        this.username = username;
        System.out.println("this is init...");
    }

    public User() {
        System.out.println("this is no args init...");
    }
}
